home *** CD-ROM | disk | FTP | other *** search
- <Window
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xml:lang="en-US"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:PhotoBook="clr-namespace:PhotoBook"
- x:Class="PhotoBook.PhotoBookViewer"
- x:Name="PhotoBook"
- Title="PhotoBook"
- Width="1024" Height="768" BorderBrush="{x:Null}" BorderThickness="0,0,0,0" WindowState="Normal" ResizeMode="CanMinimize" FontSize="11" FontFamily="Tahoma">
-
- <Window.Resources>
- <Style x:Key="MenuButtonStyle" BasedOn="{x:Null}" TargetType="{x:Type Button}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Rectangle Opacity="0" Fill="#66FFFFFF" Stroke="{x:Null}" StrokeThickness="0.5" HorizontalAlignment="Stretch" Margin="0,2,2,2" x:Name="rectangle" VerticalAlignment="Stretch"/>
- <Path Fill="{x:Null}" Stretch="Fill" Stroke="#7FFFFFFF" StrokeThickness="1" HorizontalAlignment="Right" Margin="0,4,0.5,4" Width="1" Height="17" Grid.RowSpan="1" Data="M-87.28,4 L-87.28,17"/>
- <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="10,0,10,0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" TextElement.Foreground="#FFFFFFFF" RecognizesAccessKey="True"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsFocused" Value="True"/>
- <Trigger Property="IsDefaulted" Value="True"/>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Opacity" TargetName="rectangle" Value="0.5"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Opacity" TargetName="rectangle" Value="1"/>
- <Setter Property="Fill" TargetName="rectangle" Value="#FF000000"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False"/>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Storyboard x:Key="intro">
- <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">
- <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
- <SplineDoubleKeyFrame KeyTime="00:00:02.2000000" Value="0"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:02.5000000" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="splashGrid" Storyboard.TargetProperty="(UIElement.Opacity)">
- <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
- <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
- <SplineDoubleKeyFrame KeyTime="00:00:01.9000000" Value="1"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0,0.5,0.5" KeyTime="00:00:02.3000000" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="splashGrid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
- <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.9"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
- <SplineDoubleKeyFrame KeyTime="00:00:01.9000000" Value="1"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0,0.5,0.5" KeyTime="00:00:02.3000000" Value="1.1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="splashGrid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
- <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.9"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:00.5000000" Value="1"/>
- <SplineDoubleKeyFrame KeyTime="00:00:01.9000000" Value="1"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0,0.5,0.5" KeyTime="00:00:02.3000000" Value="1.1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="photoBook" Storyboard.TargetProperty="(UIElement.Opacity)">
- <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
- <SplineDoubleKeyFrame KeyTime="00:00:02.5000000" Value="0"/>
- <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.5,1" KeyTime="00:00:02.9000000" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </Window.Resources>
-
- <Window.Background>
- <LinearGradientBrush EndPoint="0.511,0.991" StartPoint="0.511,0.091">
- <GradientStop Color="#FF222222" Offset="0"/>
- <GradientStop Color="#FFFFFFFF" Offset="1"/>
- </LinearGradientBrush>
- </Window.Background>
-
- <Window.Triggers>
- <EventTrigger RoutedEvent="FrameworkElement.Loaded">
- <BeginStoryboard Storyboard="{StaticResource intro}"/>
- </EventTrigger>
- </Window.Triggers>
- <Grid Focusable="False" x:Name="root">
- <Grid RenderTransformOrigin="0.5,0.5" x:Name="splashGrid" Opacity="0" d:LayoutOverrides="Width, Height" Margin="0,0,0,-1">
- <Grid.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="1"/>
- <SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0"/>
- <TranslateTransform X="0" Y="0"/>
- </TransformGroup>
- </Grid.RenderTransform>
- <Image Visibility="Visible" x:Name="splash" Canvas.Left="288" Canvas.Top="72" Stretch="Fill" Opacity="1" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Stretch" Margin="111,0,0,0" VerticalAlignment="Stretch" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" Width="609" Height="550" Source="Assets\splash.png">
- <Image.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="1"/>
- <SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0"/>
- <TranslateTransform X="0" Y="0"/>
- </TransformGroup>
- </Image.RenderTransform>
- </Image>
- <TextBlock Opacity="1" Height="76" FontFamily="Segoe" FontSize="60" FontStretch="Normal" FontWeight="Light" TextWrapping="Wrap" Margin="165,-398,256,0" VerticalAlignment="Center" HorizontalAlignment="Center">
- <Run Foreground="#FF4D4D4D">Photo</Run>
- <Run FontWeight="Normal">Book</Run>
- </TextBlock>
- <TextBlock Opacity="1" Height="33" FontFamily="Segoe" FontSize="16" FontStretch="Normal" FontWeight="Normal" TextWrapping="Wrap" Foreground="#FF8C8C8C" Text="Sample Pack 1" Margin="90,-292,353,0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Grid>
- <Grid Opacity="1" Margin="30,30,30.5,0" x:Name="grid" VerticalAlignment="Top" Canvas.Left="30" Canvas.Top="30">
- <Image HorizontalAlignment="Right" Margin="0,7,0,0" VerticalAlignment="Top" Width="133" Height="33" Source="Assets\blend.png" Stretch="Fill" x:Name="ExpressionBlendLogo"/>
- <Rectangle Fill="#26FFFFFF" Stroke="{x:Null}" StrokeThickness="0.5" HorizontalAlignment="Stretch" Margin="0,45,0,0" VerticalAlignment="Bottom" Height="21" x:Name="menuBar"/>
- <TextBlock Opacity="1" FontFamily="Segoe" FontSize="48" FontStretch="Normal" FontWeight="Light" TextWrapping="Wrap" Foreground="#FFFFFFFF" Margin="-2,-15.14,205.5,5.14">
- <Run Foreground="#FF9C9FA3">Photo</Run>
- <Run FontWeight="Normal">Book</Run>
- <Run FontSize="14" FontWeight="Normal" Foreground="#FF9C9FA3">Sample Pack 1</Run>
- </TextBlock>
- <StackPanel HorizontalAlignment="Stretch" Margin="2,0,0,0" VerticalAlignment="Bottom" Height="21" Orientation="Horizontal" x:Name="stackMenu">
- <Button Style="{DynamicResource MenuButtonStyle}" Content="_Exit" Click="OnExit"/>
- </StackPanel>
- </Grid>
- <Canvas Margin="0,0,0.5,0" x:Name="table" Canvas.Left="0" Canvas.Top="0"/>
- <PhotoBook:BookViewer Opacity="1" HorizontalAlignment="Center" Margin="100,80,100,20" x:Name="photoBook" VerticalAlignment="Center" Width="Auto" Height="Auto" BookPath="Sample_Photos"/>
- </Grid>
- </Window>